package com.xgll.modules.api.service;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.xgll.modules.api.dao.ApiFootprintMapper;
import com.xgll.modules.api.entity.FootprintVo;

@Service
public class ApiFootprintService {
	@Autowired
	private ApiFootprintMapper footprintDao;
	
    public void del(Integer id,Integer user_id){
    	footprintDao.del(id, user_id);
    };
	public List<Map<String, Object>> findfoot(Integer user_id) {
		return footprintDao.findfoot(user_id);
	}

	public FootprintVo queryObject(Integer id) {
		return footprintDao.queryObject(id);
	}

	public List<FootprintVo> queryList(Map<String, Object> map) {
		return footprintDao.queryList(map);
	}

	public List<FootprintVo> shareList(Map<String, Object> map) {
		return footprintDao.shareList(map);
	}

	public int queryTotal(Map<String, Object> map) {
		return footprintDao.queryTotal(map);
	}

	public void save(FootprintVo footprint) {
		footprintDao.save(footprint);
	}

	public void update(FootprintVo footprint) {
		footprintDao.update(footprint);
	}

	public void delete(Integer id) {
		footprintDao.delete(id);
	}

	public void deleteByParam(Map<String, Object> map) {
		footprintDao.deleteByParam(map);
	}

	public void deleteBatch(Integer[] ids) {
		footprintDao.deleteBatch(ids);
	}

}
